import tools as Tools
import data as Data

screen = Tools.screen
Actor = Tools.Actor
Animation = Tools.Animation

class Main:
    def __init__(self):
        Tools.Debug(3,'Part12')
    def Enter(self):
        self.Pic5 = Actor('pic5',[-150,Tools.CentralY()-100])
        self.Pic6 = Actor('pic6',[Data.WIDTH+150,Tools.CentralY()+50])
        Animation(self.Pic5,'accel_decel',1,None,x=Tools.CentralX())
        Animation(self.Pic6,'accel_decel',1,None,x=Tools.CentralX())
    def Update(self):
        screen.fill((0,0,0))
        self.Pic5.draw()
        self.Pic6.draw()
        screen.draw.text("让我们用一点练习来结束这个程序.",(100,100),"osans4.ttf")
        screen.draw.text("下面我们来看几个应用的例子.",(100,150),"osans4.ttf")
        screen.draw.text("你能找出其中的相关内容吗？",(Tools.CentralX()-150,Data.HEIGHT-150),"osans4.ttf")